from selenium import webdriver

# 初始化浏览器
driver = webdriver.Chrome()

# 打印 Chrome 版本信息
print("Chrome 版本:", driver.capabilities['browserVersion'])
print("ChromeDriver 版本:", driver.capabilities['chrome']['chromedriverVersion'].split(' ')[0])

# 测试访问网页
driver.get('https://www.google.com')
